package com.miaoyi.redisdemo.controller;

import constans.R;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/redisbase")
@Api(value = "RedisCombatController", tags = "redis基础")
public class RedisBaseController {

    @Autowired
    private StringRedisTemplate redisTemplate;


    @GetMapping("test1")
    @ApiOperation("基础操作")
    public R test1() {

        return R.ok();
    }


}
